package stream2;

import java.util.Arrays;
import java.util.stream.Stream;

public class ArrStream {
    public static void main(String[] args) {
        char arr[]=new char[]{'q','r'};
        //Arrays.stream(arr);
        Stream<char[]> stream = Stream.of(arr);
        stream.forEach((a)->{
            System.out.println(a);
        });

//        Arrays.stream(arr);

        Byte arr2[]=new Byte[]{1,2,3,4};
        Arrays.stream(arr2);
        Stream<Byte> stream1 = Arrays.stream(arr2);
        stream1.forEach((a)->{
            System.out.println(a);
        });



        float arr3[]=new float[]{1.1f,2.2f};
        //Arrays.stream(arr3);
        Stream stream2=Stream.of(arr3);
        stream2.forEach((a)->{
            System.out.println(a);
        });

    }

}
